package com.mikey.function;

import java.util.function.Consumer;

/**
 * @author :Mikey
 * @description :
 * @create :2022-09-22 11:03:00
 */
public class Demo2 {
    public static void main(String[] args) {
        Consumer<String> objectConsumer = new Consumer<String>() {
            @Override
            public void accept(String o) {
                System.out.println(o);
            }
        };
        Consumer<String> objectConsumer1=(o)->{
            System.out.println(o);;};
        objectConsumer.accept("123");
    }
}
